package com.qdlc.p2p.dal.model;

import org.springframework.beans.BeanUtils;

import com.qdlc.p2p.dal.dto.UserVipLevel;

/**
 * vip等级封装参数model类
 * @author yy
 */
public class UserVipLevelModel extends UserVipLevel {

	/** 当前页码 */
	private int page;
	/** 每页总数 **/
	private int rows;
	/** 用户名 **/
	private String userName;
	/** 真实姓名 **/
	private String realName;
	/** 查询条件*/
	private String searchName;
	/** 起始时间 */
	private String startTime;
	/** 结束时间 */
	private String endTime;
	/**
	 * 来源标识
	 */
	public static String SOURCE_TYPE = "vipLevel";
	
	public static UserVipLevelModel instance(UserVipLevel userVipLevel) {
		UserVipLevelModel model = new UserVipLevelModel();
		BeanUtils.copyProperties(userVipLevel, model);
		return model;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getSearchName() {
		return searchName;
	}

	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

}
